<?php

	global $linkColorList;
	$reviewDAO = GetReviewDAO();
	$hotReviews = $reviewDAO->GetHotReview(5);
	
	$newReviews = $reviewDAO->GetNewReview(30);
	
	$newReviews1=array();
	$num1 =	0;
	foreach($newReviews as $Review)
	{
		
		$userID = $Review['user_id'];
		
		if(!isset($newReviews1["$userID"])){
			$newReviews1["$userID"]=$Review;//相同user只取一次
			$num1++;
		}	
			
		if($num1==5)
			break;
	}
	
	$shopDAO = GetShopDAO();
	$hotShops = (array)$shopDAO->GetHotShop(8);
	$hotMalls = (array)$shopDAO->GetHotMall(8);
	
	if(count($hotShops)<8)
	{
		$add = 8-count($hotShops);
		for( $i = 0; $i<$add; $i++)
		{
			$hotShops[]=false;
		}
	}
	
	$productDAO = GetProductDAO();
	$hotProducts = (array)$productDAO->GetHotProduct(12);
	if(count($hotProducts) < 12)
	{
		$add= 12 - count($hotProducts);
		for($i=0; $i<$add; $i++)
		{
			$hotProducts[]=false;
		}
	}
	
	
?>